<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewVentaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewVentaLabel_id}"/>
                    <h:outputText value="#{ventaController.selected.id}" title="#{bundle.ViewVentaTitle_id}"/>
                    <h:outputText value="#{bundle.ViewVentaLabel_cantidadVenta}"/>
                    <h:outputText value="#{ventaController.selected.cantidadVenta}" title="#{bundle.ViewVentaTitle_cantidadVenta}"/>
                    <h:outputText value="#{bundle.ViewVentaLabel_montoVenta}"/>
                    <h:outputText value="#{ventaController.selected.montoVenta}" title="#{bundle.ViewVentaTitle_montoVenta}"/>
                    <h:outputText value="#{bundle.ViewVentaLabel_iva10}"/>
                    <h:outputText value="#{ventaController.selected.iva10}" title="#{bundle.ViewVentaTitle_iva10}"/>
                    <h:outputText value="#{bundle.ViewVentaLabel_fechaVenta}"/>
                    <h:outputText value="#{ventaController.selected.fechaVenta}" title="#{bundle.ViewVentaTitle_fechaVenta}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewVentaLabel_idUsuarioVendedor}"/>
                    <h:outputText value="#{ventaController.selected.idUsuarioVendedor}" title="#{bundle.ViewVentaTitle_idUsuarioVendedor}"/>
                    <h:outputText value="#{bundle.ViewVentaLabel_idProductoVenta}"/>
                    <h:outputText value="#{ventaController.selected.idProductoVenta}" title="#{bundle.ViewVentaTitle_idProductoVenta}"/>
                    <h:outputText value="#{bundle.ViewVentaLabel_idCliente}"/>
                    <h:outputText value="#{ventaController.selected.idCliente}" title="#{bundle.ViewVentaTitle_idCliente}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{ventaController.destroyAndView}" value="#{bundle.ViewVentaDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewVentaEditLink}"/>
                <br />
                <h:commandLink action="#{ventaController.prepareCreate}" value="#{bundle.ViewVentaCreateLink}" />
                <br />
                <h:commandLink action="#{ventaController.prepareList}" value="#{bundle.ViewVentaShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewVentaIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
